#include <iostream>

#include <vector>

using namespace std;

void Test1()
{

	vector<int>array;

	array.push_back(100);
	array.push_back(300);
	array.push_back(300);
	array.push_back(300);
	array.push_back(300);
	array.push_back(500);

	vector<int>::iterator itor;

	for (itor = array.begin(); itor != array.end(); itor++)
	{
		if (*itor == 300)
		{
			itor = array.erase(itor);
		}
	}

	for (itor = array.begin(); itor != array.end(); itor++)
	{
		cout << *itor << " ";
	}

}

void Test2()
{
	int ar[] = { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 };

	int n = sizeof(ar) / sizeof(int);
	vector<int> v(ar, ar + n);

	cout << v.size() << ":" << v.capacity() << endl;//

	//v.reserve(100);
	v.resize(14);

	cout << v.size() << ":" << v.capacity() << endl;//20  100

	v.reserve(50);
	v.resize(5);

	cout << v.size() << ":" << v.capacity() << endl;//
}


int main(void)
{
	Test2();

	return 0;

}